package com.gxa.autoparts.admin.service;

import com.gxa.autoparts.core.pojo.Admin;
import com.gxa.autoparts.core.pojo.Permission;
import com.gxa.autoparts.core.pojo.Role;
import com.gxa.autoparts.core.service.BaseService;

import java.util.List;
import java.util.Map;

public interface AdminService extends BaseService<Admin> {
    List<Map> selectAllAdmin(Integer page, Integer size);

    Admin selectByName(String name);
    List<Role> getRoleList(String name);

    List<Permission> getPermissionList(Long id);

    List<Map> selectAllAdmin2();

    List<Permission> selectPermissionByName(String name);

    //Map selectAllAdmin(Integer page, Integer size);
}
